﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 产品属性表
	/// </summary>
	public class DbProductParams
	{ 
		#region DbProductParams
		/// <summary>
		/// 
		/// </summary>
		public DbProductParams()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbProductParams(Int32 rId)
		{
			this.rId = rId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbProductParams(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["rId"]),out rId);
			this.rName = Convert.ToString(dr["rName"]);
			this.rValue = Convert.ToString(dr["rValue"]);
			this.rPicPath = Convert.ToString(dr["rPicPath"]);
			int.TryParse(Convert.ToString(dr["rOrder"]),out rOrder);
			if(dr["rEnterTime"] != DBNull.Value)
				this.rEnterTime = Convert.ToDateTime(dr["rEnterTime"]);
			int.TryParse(Convert.ToString(dr["rType"]),out rType);
			
		}
		#endregion
		
		
		#region RId
		private Int32 rId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 RId
		{
			get{ return rId; }
			set{ rId= value; }
		}
		#endregion
		
		#region RName
		private System.String rName;
		/// <summary>	 
		/// 属性名
		/// </summary>
		public System.String RName
		{
			get{ return rName; }
			set{ rName= value; }
		}
		#endregion
		
		#region RValue
		private System.String rValue;
		/// <summary>	 
		/// 属性值
		/// </summary>
		public System.String RValue
		{
			get{ return rValue; }
			set{ rValue= value; }
		}
		#endregion
		
		#region RPicPath
		private System.String rPicPath;
		/// <summary>	 
		/// 属性值图标
		/// </summary>
		public System.String RPicPath
		{
			get{ return rPicPath; }
			set{ rPicPath= value; }
		}
		#endregion
		
		#region ROrder
		private Int32 rOrder;
		/// <summary>	 
		/// 排序
		/// </summary>
		public Int32 ROrder
		{
			get{ return rOrder; }
			set{ rOrder= value; }
		}
		#endregion
		
		#region REnterTime
		private DateTime rEnterTime;
		/// <summary>	 
		/// 加入时间
		/// </summary>
		public DateTime REnterTime
		{
			get{ return rEnterTime; }
			set{ rEnterTime= value; }
		}
		#endregion
		
		#region RType
		private Int32 rType;
		/// <summary>	 
		/// 属性类别
		/// 1-颜色 2-品牌 3-尺寸
		/// </summary>
		public Int32 RType
		{
			get{ return rType; }
			set{ rType= value; }
		}
		#endregion

	}
}
